#include <stdio.h>

int main()
{
    int nums[]={1,2};
    double nums2[5]={1,2,3,4,5};
    //定义普通指针指向数组第一个元素
    int* ptr1=&nums[0];
    //定义数组指针指向整个数组
    int (*ptr2)[2]=&nums;
    //printf("nums: %p\n",nums);
    //printf("&nums: %p\n",&nums);
    printf("nums2: %p\n",nums2);
    printf("ptr1: %p\n",ptr1);
    printf("ptr2: %p\n",ptr2);
    ptr1++;
    //ptr2++;
    printf("ptr1: %p\n",ptr1);
    printf("ptr2: %p\n",ptr2);

    for (int i = 0; i < 2; i++)
    {
        printf("%d\n",(*ptr2)[0]);
    }
    
    return 0; 
}